<include file="public:header" />

<form action="{:U('newsmb/create')}" method="post" name="myform" id="myform" class="lkcmsform">

<table width="100%" cellpadding="2" cellspacing="1" class="form-table">
<tbody>
	<tr> 
      <th width="60">{:L('标题')} :</th>
      <td><input type="text" name="title" id="title" class="input-text" value="" size="25" maxlength="100">
		<br>
        颜色：<input type="color" name="title_color" id="title_color" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        加粗：<input type="checkbox" name="title_bold" value="1" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
        
    <tr>
        <th width="60">{:L('发布时间(年)')} :</th>
        <td><input type="text" name="editor" id="editor" class="input-text" value="" size="25" maxlength="100" ></td>
    </tr>

	<tr>
        <th width="60">{:L('发布时间(月日)')} :</th>
        <td><input type="text" name="pub_time" id="pub_time" class="input-text" value="" size="25" maxlength="100" ></td>
    </tr>
    
    
    <tr>
        <th width="60">{:L('城市')} :</th>
        <td><input type="text" name="city_name" id="city_name" class="input-text" value="" size="25" maxlength="100" ></td>
    </tr>
    
    <tr>
        <th width="60">{:L('摘要')} :</th>
        <td><textarea id="summary" name="summary" cols="70" rows="3"></textarea></td>
    </tr>

    <tr>
        <th width="60">{:L('小图(265*146)')} :</th>
        <td><input type="text" name="pic_show" id="pic_show" size="25" class="input-text" maxlength="100"  ><a class="lk-pic-select button" href="javascript:LK_BrowseServer('pic_show','newsmb/');" >{:L('选择图片')}</a>
        
         &nbsp;&nbsp;&nbsp;替换文本(ALT): <input type="text" name="pic_alt" id="pic_alt" class="input-text" value="" size="25" maxlength="100">
        
        </td>
    </tr>
	
	
	<tr>
        <th width="60">{:L('大图(575*317)')} :</th>
        <td><input type="text" name="pic_b_show" id="pic_b_show" size="25" class="input-text" maxlength="100"  ><a class="lk-pic-select button" href="javascript:LK_BrowseServer('pic_b_show','newsmb/');" >{:L('选择图片')}</a>
        
         &nbsp;&nbsp;&nbsp;替换文本(ALT): <input type="text" name="pic_b_alt" id="pic_b_alt" class="input-text" value="" size="25" maxlength="100">
        
        </td>
    </tr>
    
    
    
	<tr> 
      <th width="60">{:L('转向链接')} :</th>
      <td><input type="text" name="linkurl" id="linkurl" class="input-text" value="" size="25" maxlength="120">
      <br>
      <input type="radio" name="linkurl_target" class="radio_style" value="_self"  /> &nbsp;{:L('当前窗体打开')}&nbsp;&nbsp;&nbsp;
      <input type="radio" name="linkurl_target" class="radio_style" value="_blank" checked/> &nbsp;{:L('新开窗体打开')}
      </td>
    </tr>
    
	<tr> 
      <th width="60">{:L('详细内容')} :<!--<br><br>在“源码”模式用&lt!--split--&gt;切割内容--></th>
      <td>
          <textarea name="content" id="content"></textarea>
      </td>
    </tr>
	
	
	<tr> 
      <th width="60">{:L('内容页模板')} :</th>
      <td>
	      <select name="newsmb_tpl" >
			<option value="default">新闻内容页</option>
		  </select>
      </td>
    </tr>
    
    <tr> 
      <th width="60">{:L('关键字')} :</th>
      <td>
      
      <foreach name="allkeywordlist" item="rec">
      	<input type="checkbox" name="keyword[{$rec['title']}]" value="{$rec['title']}" />{$rec['title']}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </foreach>
      
      </td>
    </tr>
    
    <tr> 
      <th width="60">{:L('来源')} :</th>
      <td><input type="text" name="laiyuan" id="laiyuan" class="input-text" value="" size="25" maxlength="100"></td>
    </tr>
    
    <tr> 
      <th width="60">{:L('发布人')} :</th>
      <td><input type="text" name="pub_man" id="pub_man" class="input-text" value="" size="25" maxlength="100"></td>
    </tr>
    
    <tr> 
      <th width="60">{:L('点击量')} :</th>
      <td><input type="text" name="click_num" id="click_num" class="input-text" value="" size="25" maxlength="100"></td>
    </tr>
    
    
    
    <tr>
        <th width="60">{:L('上一篇')} :</th>
        <td>
        <input type="text" name="news_id_prev_title" id="news_id_prev_title" class="input-text input-text-addwidth" value="" size="25" maxlength="100" readonly>
        <input type="hidden" name="news_id_prev" id="news_id_prev" class="input-text" value="" size="25" maxlength="100">
        <a class="fancybox fancybox.iframe" href="{:U('newsmb/listing_prev', array('id'=>$record['id'] , 'input_id'=>'news_id_prev' ))}">选择</a>&nbsp;&nbsp;
        <a href="javascript:void(0)" onclick='javascript:$("#news_id_prev").val("");$("#news_id_prev_title").val("");'>清空</a>&nbsp;&nbsp;
        </td>
    </tr>
    
    <tr>
        <th width="60">{:L('下一篇')} :</th>
        <td>
        <input type="text" name="news_id_next_title" id="news_id_next_title" class="input-text input-text-addwidth" value="" size="25" maxlength="100" readonly>
        <input type="hidden" name="news_id_next" id="news_id_next" class="input-text" value="" size="25" maxlength="100">
        <a class="fancybox fancybox.iframe" href="{:U('newsmb/listing_prev', array('id'=>$record['id'] , 'input_id'=>'news_id_next' ))}">选择</a>&nbsp;&nbsp;
        <a href="javascript:void(0)" onclick='javascript:$("#news_id_next").val("");$("#news_id_next_title").val("");'>清空</a>&nbsp;&nbsp;
        </td>
    </tr>
    
    
    <tr>
        <th width="60">{:L('相关文章')} :</th>
        <td>
        <textarea name="news_id_relative_title" id="news_id_relative_title" cols="70" rows="3" readonly></textarea>
        <input type="hidden" name="news_id_relative" id="news_id_relative" class="input-text" value="" size="25" maxlength="100">
        <br>&nbsp;<a class="fancybox fancybox.iframe" href="{:U('newsmb/listing_relative', array('id'=>$record['id'] , 'input_id'=>'news_id_relative' ))}">选择</a>&nbsp;&nbsp;
        <a href="javascript:void(0)" onclick='javascript:$("#news_id_relative").val("");$("#news_id_relative_title").val("");'>清空</a>&nbsp;&nbsp;
        </td>
    </tr>
    
    
    
	<tr> 
      <th width="60">{:L('页面 Title')} :</th>
      <td><input type="text" name="seo_title" id="seo_title" class="input-text" value="" size="25" maxlength="100"></td>
    </tr>
    
	<tr>
        <th width="60">{:L('页面 meta Keyword')} :</th>
        <td><textarea id="seo_keyword" name="seo_keyword" cols="70" rows="3"></textarea></td>
    </tr>
    
    <tr>
        <th width="60">{:L('页面 meta Description')} :</th>
        <td><textarea id="seo_desc" name="seo_desc" cols="70" rows="3"></textarea></td>
    </tr>
    
    
    
	<tr>
        <th width="60">{:L('发布时间')} :</th>
        <td><input type="text" name="publishtime" id="publishtime" class="input-text" size="25" maxlength="100"></td>
    </tr>
    
    
    <tr>
        <th>{:L('是否置顶')} :</th>
        <td>
            <input type="radio" name="is_top" class="radio_style" value="1"  /> &nbsp;{:L('是')}&nbsp;&nbsp;&nbsp;
            <input type="radio" name="is_top" class="radio_style" value="0" checked /> &nbsp;{:L('否')}
        </td>
    </tr>
    
    

    <tr>
        <th width="60">{:L('顺序')} :</th>
        <td><input type="text" name="sort" id="sort" class="input-text" value="" size="25" maxlength="100" onkeyup="keyup_action3(this)"></td>
    </tr>
	
    
    <?php if($CurrAccount['Account-Role']=='administrator' || $CurrAccount['Account-Role']=='admin'){ ?>
    <tr>
      	<th>{:L('状态')} :</th>
      	<td>
      		<input type="radio" name="status" class="radio_style" value="1" checked /> &nbsp;{:L('发布')}&nbsp;&nbsp;&nbsp;
        	<input type="radio" name="status" class="radio_style" value="0" /> &nbsp;{:L('隐藏')}
      	</td>
    </tr>
    <?php }else{ ?>
    <tr>
      	<th>{:L('状态')} :</th>
      	<td>
      		<input type="hidden" name="status" value="0" /> 隐藏
      	</td>
    </tr>
    <?php } ?>
    
    
    
</tbody>
</table>
<table width="100%" cellpadding="2" cellspacing="1" class="form-table">
	<tfoot>
	<tr><th>
<input type="submit" name="dosubmit" id="dosubmit" class="button" value="确定" >
	</th></tr>
	</tfoot>
</table>
</form>
<script language="javascript" type="text/javascript" src="__ROOT__/scripts/ckeditor/ckeditor.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/scripts/ckfinder/ckfinder.js"></script>
<script type="text/javascript">

    function LK_BrowseServer(id, startupPath ) {
        var finder = new CKFinder();
        finder.BasePath = '__ROOT__/scripts/ckfinder/';
        finder.startupPath  = "Images:/" +  startupPath;
        finder.selectActionFunction = LK_SetFileField;
        finder.selectActionData = new Array(id, startupPath);
        finder.popup();
    }

    function LK_SetFileField(fileUrl, data) {
        var id = data["selectActionData"][0];
        jQuery("#" + id).val(fileUrl);
        jQuery("#" + id + "Preview").html("<img src='" + fileUrl + "' />");
    }


    $(function(){
        $(document).ready(function(){
            if (typeof CKEDITOR == "undefined") {
                //document.write("加载CKEditor失败");
            }
            else {
                var editor = CKEDITOR.replace("content");
                CKFinder.setupCKEditor(editor, "__ROOT__/scripts/ckfinder/"); //ckfinder总目录的相对路径.
            }
        });
    });


    $(function(){
        var message_000 = "{:L('不能为空')}";
        $.formValidator.initConfig($.extend(true, {}, JPLUGIN_FORMVALIDATOR_CONFIG, {formID: 'myform'}));
        $("#title").formValidator({onShow:message_000,onFocus:message_000}).inputValidator({min:1,onError:"请输入标题"});
    });



</script>

<link rel="stylesheet" type="text/css" href="__ROOT__/scripts/spectrum/spectrum.css">
<script type="text/javascript" src="__ROOT__/scripts/spectrum/spectrum.js"></script>





    
    <link href="__ROOT__/scripts/timefiles/style.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.theme.css" rel="stylesheet" type="text/css" />
    <link href="__ROOT__/scripts/timefiles/ui.core.css" rel="stylesheet" type="text/css" />
    <script src="__ROOT__/scripts/timefiles/ui.datepicker.js" type="text/javascript"></script>
    <script type="text/javascript">
         $(function() {
             $("#publishtime").datepicker();
         });
	</script>




<script type="text/javascript" src="__ROOT__/scripts/fancybox/source/jquery.fancybox.js?v=2.1.4"></script>
<link rel="stylesheet" type="text/css" href="__ROOT__/scripts/fancybox/source/jquery.fancybox.css?v=2.1.4" media="screen" />
    <script type="text/javascript">
	$(function(){
		$('.fancybox').fancybox({
				'width': '90%',
				'height': '75%',
			});
		//$('.fancybox').fancybox();
	});
	</script>




<include file="public:footer" />
